// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.supporter-perk-list-group {
  @top: supporter-perk-list-group;
  flex: none;
  overflow: hidden;
  color: #fff;
  font-size: @font-size--title-small;
  width: calc(33% - 10px);
  margin-bottom: 20px;

  @media @mobile {
    align-items: center;
    display: flex;
    width: calc(100% - 10px);
  }

  &--image {
    display: flex;
    text-align: right;
    align-items: center;
    width: 100%;
    flex-direction: row-reverse;
    margin-bottom: 5px;

    @media @mobile {
      flex-direction: column-reverse;
      text-align: left;
      align-items: flex-start;
      margin-bottom: 10px;
    }
  }

  &__content {
    margin: 0;
  }

  &__image {
    width: 500px;
    height: 100px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;

    @media @mobile {
      align-self: center;
      flex-shrink: 1;
      max-width: calc(100% - 40px);
      margin-top: 10px;
    }
  }

  &__icon {
    color: #fff;
    font-size: 26px; // icon size
    padding: 0 20px;

    .@{top}--image & {
      @media @desktop {
        margin-right: -45px;
      }
    }
  }

  &__icon-bg {
    color: @osu-colour-lime-3;
    .@{top}--why-support & {
      color: @osu-colour-blue-3;
    }
  }

  &__link {
    display: block;
    margin-top: 10px;
  }

  &__meta {
    .@{top}--image & {
      display: flex;
      align-items: center;
      flex-direction: row-reverse;

      @media @mobile {
        flex-direction: row;
      }
    }
  }

  &__text {
    padding: 10px;
    color: @osu-colour-f1;
  }

  &__title {
    margin: 0 0 10px;
    font-size: 120%;
    color: white;
  }
}
